<?php 
class PagesAction extends GlobalAction 
{
	public function read()
	{
		$id=intval($_REQUEST['id']);
		$Pages=D("Pages");
		$list=$Pages->find($id);
		$this->assign('vo',$list);
		dump($list);
		
		$map['module']=2;//新闻分类
		require('Category.class.php');//导入Category.class.php类
		$cat=new Category('Category',array('id','pid','title','fulltitle'));
		$s=$cat->getList('',3);//$condition为查询条件，获取pid=1的子分类结构		
		$this->assign('cate',$s);
		$zhuanli=$cat->getList('',5);		
		$this->assign('zhuanli',$zhuanli);
		$shangbiao=$cat->getList('',5);
		$this->assign('shangbiao',$shangbiao);
		
		$this->display();
	}
	public function about()
	{
		$Pages=D("Pages");
		$condition['id']=17;
		$list=$Pages->find($condition);
		$this->assign('vo',$list);
		$this->display();
	}

}
?>